<?php
    header('Content-type:text/json');
    require "../../connection.php";
    $id = $_POST['id'];
    $goods_id = $_POST['goods_id'];
    $result = $conn->doSql("update  goods_adv_map set goods_id ='".$goods_id."' where id = ".$id);
    echo json_encode($goods_id);
    if($result){
        $msg = "更新成功";
     }else{
         $msg = "更新失败";
     }
     $data = array("status"=>"1","msg"=>$msg);
   // echo json_encode($data);

?>